import axios from '../utils/Axios.js'
export const selectGoods = (page) => {
    return axios.get('/goods',page)
}
export const selectOneGoods = (id) => {
    return axios.get('/goods/'+id)
}
export const selectGoodsCount=()=>{
    return axios.get('/goods/count')
}
export const allowGoods = (page) => {
    return axios.get('/goods/allow',page)
}
export const swAllow = (goods) => {
    return axios.put('/goods/swallow',goods)
}
export const addGoods = (goods) => {
    return axios.post('/goods/add',goods)
}
export const selectBasketball = () => {
    return axios.get('/goods/basketball')
}
export const selectFootball = () => {
    return axios.get('/goods/football')
}
export const selectMy = () => {
    return axios.get('/goods/my')
}
export const delGoods = (id) => {
    return axios.get('/goods/del/'+id)
}
